Hello, I experience some problem exporting a .rtf file as a .pdf file.
To get it simple, I get a "C:\test.rtf" file. I want to get a converted file C:\test.pdf" file using the Word "Save as pdf" feature.
I followed some instructions here
And I get this following code but it's not working... The rtf file is opening but nothing moreWhat am I doing wrong?
OleAutoObj objWord = oleCreateAutoObject("Word.Application")
string docName="C:\\DOCS\\test.rtf"
OleAutoArgs oaaArgs = create
Thank you very much for your help!!! ducosa - Mon Sep 05 05:55:55 EDT 2016 |
Re: Export rtf as pdf file Line OleAutoArgs oaaArgs = create creates a new document but you never loaded the rtf in the new document.
|
Re: Export rtf as pdf file Thank you for answering me!
I still don't get it, opening the document is done through the oleMethod, not the args? I mean, for me oleMethod(objDoc, "Open", args) declare objDoc as the open document. Then objDoc can be used at the last line with other arguments
Of course It looks like I'm wrong but hell I just can't understand :D
Thank you!
Regards,
Antoine |
Re: Export rtf as pdf file You can hope someone will translate the following vba to DXL.
Sub SaveAsPDF() |
Re: Export rtf as pdf file Hi, The solution in DXL:
OleAutoObj objWord = oleCreateAutoObject("Word.Application")
string docName="D:\\Temp\\test.rtf"
args = create
Regards Christophe |